function [ conCompMaxVals, flagFit ] = EvaluateVelocityFitGUI( smoothedVelData, windowedImg, conCompMaxVals, flagFit, inputAxes, instructionText )
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here


%Get user input if current fit is not sufficient
if flagFit == 0
    
    %Display image with curve overlay and ask for evaluation of fit
    axes(inputAxes)
    imshow(windowedImg)
    hold on
    plot(smoothedVelData(:, 1), smoothedVelData(:, 2), 'r', 'LineWidth', 1.5)
    set(instructionText, 'string', 'Please evaluate whether or not current curve fit is accurate.');
    flagFit = str2double(cell2mat(inputdlg(strcat('Is the current curve fit accurate?', ...
        ' Enter 1 for yes and 0 for no'),'Curve Fit Evaluation.',[1 40],{'1'},'on')));
    
    %Checks to make sure user input is of type double
    if isa(flagFit, 'double') ~=1
        type = class(flagFit);
        error(sprintf(('User input is of type %s please change to type double'), type))
    
    end
    
    
    if flagFit == 0
        
        [ conCompMaxVals ] = getVelocityManuallyGUI( smoothedVelData, windowedImg, conCompMaxVals, inputAxes, instructionText );
        
    end
    
else
    
    return
    
end

end

